﻿using System;
using System.Collections.Generic;
using System.Text;
using MigratorCore.Bases;

namespace Migrator.WebWizForums
{
	public class Version7_9 : IProvider
	{
        #region IProvider Members

        public string Name
        {
            get { return "Web Wiz Forums 7.9"; }
        }

        public int Version
        {
            get { return 1; }
        }

        private Settings settings;
        public Settings Settings
        {
            get {
                if (settings == null) settings = new Settings();
                return settings;
            }
        }

        public string Description
        {
            get { return "Web Wiz Forums Version 7.9"; }
        }

        private List<IAction> actions;
        public List<IAction> Actions
        {
            get {
                if (actions == null)
                {
                    actions = new List<IAction>();
                    actions.Add(new version7_9.UserSource());
                    actions.Add(new version7_9.ForumSource());
                }
                return actions;
            }
        }

        public IAction getAction(string Name)
        {
            foreach (IAction action in actions)
                if (action.Name == Name) return action;
            return null;
        }

        #endregion
    }
}
